home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Amiga Amateur Radio User Group / AARUG UK #81 (199x)(Amiga Amateur Radio User Group UK)(PD)[WB][G4DCV].zip / AARUG UK #81 (199x)(Amiga Amateur Radio User Group UK)(PD)[WB][G4DCV].adf / DisView / !REWRITE.TXT < prev    next >
Text File  |  1995-05-29  |  2KB  |  51 lines

  1. ============                                        DISview [518]
  2. !REWRITE.TXT
  3. ============
  4.  
  5.  
  6. To edit ~/spool/rewrite from the DIS Session Manager:
  7. *****************************************************************
  8. MAIN MENU:D > CONFIGURE NET:F > ADVANCED EDITING:C -- "Edit Mail
  9. Header REWRITE file".
  10. *****************************************************************
  11.  
  12. The rewrite file (~/spool/rewrite) is read by:
  13.  
  14. 1. your SMTP server when receiving incoming mail -- SMTP reads 
  15.    the rewrite file _before_ reading the incoming mail alias file 
  16.    ~/alias.
  17.  
  18. 2. the mailer in the built-in KA9Q BBS when sending a mail 
  19.    message -- the mailer uses the file to rewrite the message
  20.    address if necessary _before_ putting the message into the 
  21.    outgoing mail queue ~/spool/mqueue.
  22.    
  23.  
  24. >> Example of ~/spool/rewrite:
  25. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  26. # ~/spool/rewrite
  27.  
  28. *@uk.co.demon.dowrmain.demon.co.uk   $1@dowrmain.demon.co.uk    r
  29. ian_wade@dowrmain.demon.co.uk        ian@dowrmain.demon.co.uk
  30. xyz*list@dowrmain.demon.co.uk        list$1@majordomo.dmain.org
  31. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  32.  
  33. Fields in the rewrite file are separated by one or more spaces.
  34.  
  35. The file may contain comment lines (starting with #) and/or blank
  36. (empty) lines to improve readability.
  37.  
  38. Case does not matter; e.g. "demon" is the same as "Demon".
  39.  
  40. The "*" character in the first field of each entry matches zero 
  41. or more characters.
  42.  
  43. The "$n" string in the second field matches the n-th "*" in the 
  44. first field; i.e. "$1" matches the first "*", "$2" matches the 
  45. second "*", and so on.
  46.  
  47. The "r" character at the end of an entry specifies recursion; 
  48. i.e. if the record matches, rewrite the address and then re-scan
  49. the file from the beginning to see if there is now another match.
  50.  
  51.